<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>    
    <title>show log page</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
  </head>
  
  <body>
    <p align="center">日志概要</p> 
    	<table border="1" align="center">
    	<thead>
    		<tr><th>环境ID</th><th>入库日期</th><th>入库时间</th><th>日志流水号</th><th>交易代码</th><th>交易机构</th><th>交易柜员</th><th>交易日期</th><th>交易时间</th><th>交易状态</th><th>交易用时</th><th>查看日志明细</th></tr>
    	</thead>
    	<tbody>
    		<c:forEach items="${PageLogHeads.logHeads}" var="info"  >
    		<tr><td>${info.hostid}</td><td>${info.indate}</td><td>${info.intime}</td><td>${info.seqno}</td><td>${info.trancode}</td><td>${info.branch}</td><td>${info.userid}</td><td>${info.trandate}</td><td>${info.trantime}</td><td>${info.transtatus}</td><td>${info.usetime}</td><td><a href="${pageContext.request.contextPath}/QueryLog?method=showLogAll&seqNo=${info.seqno}" target="_blank">查看日志明细</a></td></tr>
  			</c:forEach>  	
    	</tbody>
    	
    	</table> 
    	<div>
    	<p align="center">
    	<table >
    		<tr>
    		<td><a href="${pageContext.request.contextPath}/QueryLog?method=showLogHeads&condition=${PageLogHeads.condition}&currentPage=${PageLogHeads.currentPage==1?1:PageLogHeads.currentPage-1}">&lt;&lt;上一页</a></td>
    		<td>第${PageLogHeads.currentPage }页/共${PageLogHeads.totalPage }页</td>
    		<td><a href="${pageContext.request.contextPath}/QueryLog?method=showLogHeads&condition=${PageLogHeads.condition}&currentPage=${PageLogHeads.currentPage==PageLogHeads.totalPage?PageLogHeads.totalPage:PageLogHeads.currentPage+1}">&gt;&gt;下一页</a></ltd>
    		</tr>
    	</table> 
    	</p>     
    	</div>
  </body>
</html>
